SHELL = /bin/sh
VPATH = @srcdir@

subdirs = @subdirs@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1

CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAGS) @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@



all: 
	cd ${srcdir}/src; $(MAKE) all

clean:
	cd ${srcdir}/src; $(MAKE) clean
	cd ${srcdir}/test; $(MAKE) clean

rebuild: clean all

test: all
	cd ${srcdir}/test; $(MAKE) test

pdf: all
	cd ${srcdir}/test; $(MAKE) pdf
	
install: all
	$(INSTALL) ${srcdir}/build/latexcalc ${bindir}/latexcalc	
